package com.moyun.finance.repository;

import com.moyun.finance.entity.TypeMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface TypeMenuRepository extends JpaRepository<TypeMenu,String>, JpaSpecificationExecutor<TypeMenu> {
    List<TypeMenu> findByCompanyId(String companyId);
    List<TypeMenu> findByCompanyIdAndType(String companyId, int type);
}
